//
//  InforTableViewCell.m
//  XingRun
//
//  Created by 赵颜彬 on 17/1/11.
//  Copyright © 2017年 赵颜彬. All rights reserved.
//

#import "InforTableViewCell.h"

@implementation InforTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"占位图"]];
        [self.contentView addSubview:_img];
        
        self.name = [[UILabel alloc] init];
        _name.text = @"把时间浪费在路上";
         self.name.font = [UIFont fontWithName:@"Helvetica" size:15];
        [self.img addSubview:_name];
        
        self.a = [[UILabel alloc] init];
        _a.text = @"#骑行";
         self.a.font = [UIFont fontWithName:@"Helvetica" size:12];
        [self.img addSubview:_a];
        
        self.time = [[UILabel alloc] init];
        _time.text = @"2016-09-01";
         self.time.font = [UIFont fontWithName:@"Helvetica" size:12];
        [self.img addSubview:_time];
        
           }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.img.frame = CGRectMake(10 * WIDTH, 10 * HEIGHT, 355 * WIDTH, 190 * HEIGHT);
    self.name.frame =
     CGRectMake(20 * WIDTH, 110 * HEIGHT, 150 * WIDTH, 30 * HEIGHT);
    self.a.frame = CGRectMake(20 * WIDTH, 140 * HEIGHT, 60 * WIDTH, 30 * HEIGHT);
    self.time.frame =CGRectMake(80 * WIDTH, 140 * HEIGHT, 150 * WIDTH, 30 * HEIGHT);
}

@end
